/*
 * @Descripttion: $0
 * @version: 
 * @Author: linPing
 * @Date: 2019-10-29 09:40:09
 * @LastEditTime: 2019-11-03 23:14:35
 */
/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 */

import React, {Fragment} from 'react';
import NavigationUtil from '../navigator/NavigationUtil'
import {
  SafeAreaView,
  StyleSheet,
  ScrollView,
  View,
  Text,
  StatusBar,
} from 'react-native';

export default class WelcomePage extends React.Component{
  constructor(props){
    super(props)
  }
  componentDidMount(){
    const { navigation } = this.props
    this.timer = setTimeout(()=>{
      // navigation.navigate('Login')
      // NavigationUtil.resetToHomePage({
      //   navigation 
      // })
      NavigationUtil.goLoginPage({
        navigation 
      })
    },200)
  }
  componentWillUnmount(){
  
    this.timer&&clearTimeout(this.timer)
  
  }
  render(){
    return (
      <View style={styles.sectionContainer}>
        <Text style={styles.sectionTitle}>LabVision</Text>
      </View>
    )
  }
 
};

const styles = StyleSheet.create({

  sectionContainer: {
    justifyContent:'center',
    flex:1,
    paddingHorizontal: 24,
    backgroundColor:'#1F61BF'
  },
  sectionTitle: {
    textAlign:'center',
    fontSize: 34,
    fontWeight: '600',
    color:'#fff',
  },
 
});


